<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;
use App\Rules\MultiUniqueRule;

class SiteRequest extends FormRequest
{

    public function authorize()
    {
        return true;
    }


    public function rules()
    {
        return [
            'title'=>['required','between:3,30',Rule::unique('sites')->ignore(request()->site)],
            'domain'=>['required','url',Rule::unique('sites')->ignore(request()->site)]
        ];
    }
}
